package dabs.engine.environment;

import java.io.Serializable;

public abstract class Modifier implements Serializable {
	private static final long serialVersionUID = -1337356590519984027L;
	
	int duration;
	
	public Modifier(int duration) {
		this.duration = duration;
	}
	
	public int getDuration() { return duration;}

	public void decrement() {
		// TODO: throw exception if duration is 0?
		duration--;
	} 
}
